import {Component, OnInit} from '@angular/core';
import {Router} from '@angular/router';

@Component({
  selector: 'list',
  templateUrl: './list.component.html',
  styleUrls: ['./list.component.less']
})
export class ListComponent implements OnInit {
  contacts: {};
  private isAdd:number = 1;

  constructor(
    private _router: Router
  ) {}
  
  ngOnInit() {
    this.getContacts();
  }

  getContacts() {
    
  }

  addContact() {
    this._router.navigate(['edit']);
  }

  routerNavigate(id: number) {
    this._router.navigate(['/list',id]);
  }

}
